<?xml version="1.0" encoding="utf-8" ?>

<!--

  NIGHTMARE - 0,
	MAGIC_BEANS - 1,
	DREAM - 2

-->

<level type="3">
  <meta score="0" buttonPrice="10"></meta>
  <bear maxHealth="100" startPosition="300" velocity="8.0" damage="11" criticalDamage="20" defaultAmmo="100" />

  <!--OT_CLOUD = 0,
  OT_SPIKE_NIGHTMARE_LARGE = 1,
  OT_SPIKE_NIGHTMARE_MEDIUM = 2,
  OT_SPIKE_NIGHTMARE_SMALL = 3,
  OT_BEAN_A = 4,
  OT_BEAN_B = 5,
  OT_BEAN_C = 6,
  OT_BEAN_D = 7,
  OT_BEAN_E = 8-->

  <!--
  MAGIC BEAN LEVEL MARGIN
  Since the beanstalks are made in such a way that those can be only placed on the side of the screen, here are the positioning
  coordinates for them:
  
  OT_BEAN_A: 269.5 (Left) 498.5 (Right, with 3.14 rotation)
  OT_BEAN_B: 128.5 (left) 638.5 (Right, with 3.14 rotation)
  OT_BEAN_C: 172 (left) 596 (Right, with 3.14 rotation)
  OT_BEAN_D: 188.5 (left) 579.5 (Right, with 3.14 rotation)
  OT_BEAN_E: 206.5 (left) 561.5 (Right, with 3.14 rotation)
  -->

  <obstacles>
    <obstacle type="9" x="119" y="2000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="450" y="3000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="14" x="489" y="4000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="11" x="140" y="5000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="240" y="6000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="12" x="500" y="7000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="14" x="120" y="8000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="12" x="300" y="9000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="12" x="560" y="10000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="230" y="11000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="13" x="570" y="12000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="200" y="13000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="14" x="119" y="14000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="9" x="406" y="15000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="310" y="16000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="9" x="400" y="17000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="490" y="18000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="14" x="120" y="19000" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="12" x="300" y="20000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="12" x="560" y="21000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="230" y="22000" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="13" x="570" y="23000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="11" x="140" y="24000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="240" y="25000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="12" x="500" y="26000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="11" x="140" y="26600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="240" y="27200" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="12" x="500" y="27800" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="490" y="28400" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="14" x="120" y="29000" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="12" x="119" y="29600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />

    <obstacle type="10" x="120" y="32000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1"/>
    <obstacle type="10" x="700" y="32000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="120" y="32600" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="10" x="700" y="32600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />

    <obstacle type="10" x="120" y="33000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1"/>
    <obstacle type="10" x="700" y="33000" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="120" y="33600" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="10" x="700" y="33600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />

    <obstacle type="10" x="400" y="34600" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />

    <obstacle type="10" x="120" y="35300" inflictsDamage="true" healthDamage="5" rotation="0" scale="1"/>
    <obstacle type="10" x="700" y="35300" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
    <obstacle type="10" x="120" y="35900" inflictsDamage="true" healthDamage="5" rotation="3.14" scale="1" />
    <obstacle type="10" x="700" y="35900" inflictsDamage="true" healthDamage="5" rotation="0" scale="1" />
  </obstacles>

  <!--
  
  MT_NIGHTMARE_A = 0,
	MT_NIGHTMARE_B = 1,
	MT_NIGHTMARE_C = 2,
	MT_MAGICBEAN_A = 3,
	MT_MAGICBEAN_B = 4,
	MT_MAGICBEAN_C = 5,
	MT_CANDYLAND_A = 6,
	MT_CANDYLAND_B = 7,
	MT_CANDYLAND_C = 8,
	MT_CANDYLAND_D = 9,
	MT_CANDYLAND_E = 10
  
  -->

  <monsters>
    <monster lifetime="3500" scale=".2" velocityX="2" velocityY="2" type="9" x="460" y="4000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3500" scale=".2" velocityX="2" velocityY="2" type="7" x="460" y="9000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3500" scale=".2" velocityX="2" velocityY="2" type="8" x="460" y="15000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3500" scale=".2" velocityX="2" velocityY="2" type="4" x="460" y="20000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3500" scale=".3" velocityX="2" velocityY="2" type="6" x="460" y="25000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />
    <monster lifetime="3500" scale=".3" velocityX="2" velocityY="2" type="10" x="460" y="30000" maxHealth="100" bonus="100" lives="0" damage="10" criticalDamage="8" defaultAmmo="50" />

    <monster lifetime="4500" scale=".4" velocityX="2" velocityY="2" type="1" x="460" y="36300" maxHealth="300" bonus="100" lives="0" damage="17" criticalDamage="8" defaultAmmo="50" />
  </monsters>


  <buttons>
    <button x="500" y="1200" />
    <button x="500" y="1260" />
    <button x="500" y="1320" />
    <button x="500" y="1380" />
    <button x="500" y="1440" />
    <button x="500" y="1500" />
    <button x="500" y="1560" />
    <button x="500" y="1620" />
    <button x="500" y="1680" />

    <button x="500" y="1800" />
    <button x="500" y="1860" />
    <button x="500" y="1920" />
    <button x="500" y="1980" />
    <button x="500" y="2040" />
    <button x="500" y="2100" />
    <button x="500" y="2160" />
    <button x="500" y="2220" />
    <button x="500" y="2280" />

    <button x="100" y="3000" />
    <button x="100" y="3060" />
    <button x="100" y="3120" />
    <button x="100" y="3180" />
    <button x="100" y="3240" />
    <button x="100" y="3300" />
    <button x="100" y="3360" />
    <button x="100" y="3420" />
    <button x="100" y="3480" />

    <button x="120" y="4000" />
    <button x="120" y="4060" />
    <button x="120" y="4120" />
    <button x="120" y="4180" />
    <button x="120" y="4240" />
    <button x="120" y="4300" />
    <button x="120" y="4360" />
    <button x="120" y="4420" />
    <button x="120" y="4480" />

    <button x="500" y="5200" />
    <button x="500" y="5260" />
    <button x="500" y="5320" />
    <button x="500" y="5380" />
    <button x="500" y="5440" />
    <button x="500" y="5500" />
    <button x="500" y="5560" />
    <button x="500" y="5620" />
    <button x="500" y="5680" />

    <button x="500" y="5800" />
    <button x="500" y="5860" />
    <button x="500" y="5920" />
    <button x="500" y="5980" />
    <button x="500" y="6040" />
    <button x="500" y="6100" />
    <button x="500" y="6160" />
    <button x="500" y="6220" />
    <button x="500" y="6280" />

    <button x="120" y="7000" />
    <button x="180" y="7060" />
    <button x="120" y="7120" />
    <button x="180" y="7180" />
    <button x="120" y="7240" />
    <button x="180" y="7300" />
    <button x="120" y="7360" />
    <button x="180" y="7420" />
    <button x="120" y="7480" />

    <button x="520" y="8000" />
    <button x="580" y="8060" />
    <button x="520" y="8120" />
    <button x="580" y="8180" />
    <button x="520" y="8240" />
    <button x="580" y="8300" />
    <button x="520" y="8360" />
    <button x="580" y="8420" />
    <button x="520" y="8480" />

    <button x="520" y="9000" />
    <button x="580" y="9060" />
    <button x="520" y="9120" />
    <button x="580" y="9180" />
    <button x="520" y="9240" />
    <button x="580" y="9300" />
    <button x="520" y="9360" />
    <button x="580" y="9420" />
    <button x="520" y="9480" />

    <button x="120" y="10000" />
    <button x="180" y="10060" />
    <button x="240" y="10120" />
    <button x="300" y="10180" />
    <button x="360" y="10240" />
    <button x="420" y="10300" />
    <button x="480" y="10360" />
    <button x="540" y="10420" />
    <button x="600" y="10480" />

    <button x="600" y="11000" />
    <button x="540" y="11060" />
    <button x="480" y="11120" />
    <button x="420" y="11180" />
    <button x="360" y="11240" />
    <button x="300" y="11300" />
    <button x="240" y="11360" />
    <button x="180" y="11420" />
    <button x="120" y="11480" />

    <button x="120" y="12000" />
    <button x="180" y="12060" />
    <button x="240" y="12120" />
    <button x="300" y="12180" />
    <button x="360" y="12240" />
    <button x="420" y="12300" />
    <button x="480" y="12360" />
    <button x="540" y="12420" />
    <button x="600" y="12480" />

    <button x="520" y="13000" />
    <button x="580" y="13060" />
    <button x="520" y="13120" />
    <button x="580" y="13180" />
    <button x="520" y="13240" />
    <button x="580" y="13300" />
    <button x="520" y="13360" />
    <button x="580" y="13420" />
    <button x="520" y="13480" />

    <button x="520" y="14000" />
    <button x="580" y="14060" />
    <button x="520" y="14120" />
    <button x="580" y="14180" />
    <button x="520" y="14240" />
    <button x="580" y="14300" />
    <button x="520" y="14360" />
    <button x="580" y="14420" />
    <button x="520" y="14480" />

    <button x="500" y="15500" />
    <button x="500" y="15560" />
    <button x="500" y="15620" />
    <button x="500" y="15680" />
    <button x="500" y="15740" />

    <button x="300" y="16300" />
    <button x="300" y="16360" />
    <button x="300" y="16420" />
    <button x="300" y="16480" />
    <button x="300" y="16540" />

    <button x="300" y="17300" />
    <button x="300" y="17360" />
    <button x="300" y="17420" />
    <button x="300" y="17480" />
    <button x="300" y="17540" />

    <button x="200" y="18300" />
    <button x="200" y="18360" />
    <button x="200" y="18420" />
    <button x="200" y="18480" />
    <button x="200" y="18540" />

    <button x="520" y="19000" />
    <button x="580" y="19060" />
    <button x="520" y="19120" />
    <button x="580" y="19180" />
    <button x="520" y="19240" />
    <button x="580" y="19300" />
    <button x="520" y="19360" />
    <button x="580" y="19420" />
    <button x="520" y="19480" />
    <button x="580" y="19540" />
    <button x="520" y="19600" />
    <button x="580" y="19660" />
    <button x="520" y="19720" />
    <button x="580" y="19780" />
    <button x="520" y="19840" />
    <button x="580" y="19900" />
    <button x="520" y="19960" />

    <button x="120" y="21000" />
    <button x="180" y="21060" />
    <button x="120" y="21120" />
    <button x="180" y="21180" />
    <button x="120" y="21240" />
    <button x="180" y="21300" />
    <button x="120" y="21360" />
    <button x="180" y="21420" />
    <button x="120" y="21480" />
    <button x="180" y="21540" />
    <button x="120" y="21600" />

    <button x="520" y="22000" />
    <button x="580" y="22060" />
    <button x="520" y="22120" />
    <button x="580" y="22180" />
    <button x="520" y="22240" />
    <button x="580" y="22300" />
    <button x="520" y="22360" />
    <button x="580" y="22420" />
    <button x="520" y="22480" />
    <button x="580" y="22540" />
    <button x="520" y="22600" />
    <button x="580" y="22660" />

    <button x="120" y="23000" />
    <button x="180" y="23060" />
    <button x="240" y="23120" />
    <button x="300" y="23180" />
    <button x="360" y="23240" />
    <button x="420" y="23300" />
    <button x="480" y="23360" />
    <button x="540" y="23420" />
    <button x="600" y="23480" />

    <button x="600" y="24000" />
    <button x="540" y="24060" />
    <button x="480" y="24120" />
    <button x="420" y="24180" />
    <button x="360" y="24240" />
    <button x="300" y="24300" />
    <button x="240" y="24360" />
    <button x="180" y="24420" />
    <button x="120" y="24480" />

    <button x="520" y="25000" />
    <button x="580" y="25060" />
    <button x="520" y="25120" />
    <button x="580" y="25180" />
    <button x="520" y="25240" />
    <button x="580" y="25300" />
    <button x="520" y="25360" />
    <button x="580" y="25420" />
    <button x="520" y="25480" />
    <button x="580" y="25540" />

    <button x="520" y="27000" />
    <button x="580" y="27060" />
    <button x="520" y="27120" />
    <button x="580" y="27180" />
    <button x="520" y="27240" />
    <button x="580" y="27300" />
    <button x="520" y="27360" />

    <button x="120" y="30000" />
    <button x="180" y="30060" />
    <button x="240" y="30120" />
    <button x="300" y="30180" />
    <button x="360" y="30240" />
    <button x="420" y="30300" />
    <button x="480" y="30360" />
    <button x="540" y="30420" />
    <button x="600" y="30480" />
    <button x="540" y="30540" />
    <button x="480" y="30600" />
    <button x="420" y="30660" />
    <button x="360" y="30720" />
    <button x="300" y="30780" />
    <button x="240" y="30840" />
    <button x="180" y="30900" />
    <button x="120" y="30960" />
    <button x="180" y="31020" />
    <button x="240" y="31080" />
    <button x="300" y="31140" />
    <button x="360" y="31200" />
    <button x="420" y="31260" />
    <button x="480" y="31320" />
    <button x="540" y="31380" />
    <button x="600" y="31440" />

    <button x="400" y="32000" />
    <button x="460" y="32060" />
    <button x="400" y="32120" />
    <button x="460" y="32180" />
    <button x="400" y="32240" />
    <button x="460" y="32300" />
    <button x="400" y="32360" />

    <button x="400" y="32500" />
    <button x="460" y="32560" />
    <button x="400" y="32620" />
    <button x="460" y="32680" />
    <button x="400" y="32740" />
    <button x="460" y="32800" />
    <button x="400" y="32860" />

    <button x="400" y="33500" />
    <button x="460" y="33560" />
    <button x="400" y="33620" />
    <button x="460" y="33680" />
    <button x="400" y="33740" />
    <button x="460" y="33800" />
    <button x="400" y="33860" />
  </buttons>
  <!--
  
  Powerup Categories:
  1 - Good
  0 - Bad
  
  Powerup Types:
  HEALTH = 0,
  HELMET = 1,
  PARACHUTE = 2,
  BUBBLE = 3,
  CAPE = 4,
  AXE = 5,
  BOOMERANG = 6,
  HAMMER = 7,
  KNIFE = 8,
  PLASMA_BALL = 9
  
  -->
  <powerups>
    <powerup category="1" type="0" x="200" y="17000" effect="99" lifespan="10"></powerup>
    <powerup category="1" type="1" x="180" y="23600" effect="999" lifespan="10"></powerup>
    <powerup category="1" type="0" x="400" y="35300" effect="99" lifespan="10"></powerup>
  </powerups>
</level>